package com.zmzncs.lmtc.module.customer.pojo.ticket;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 客户-会员卡
 * </p>
 *
 * @author JD
 * @since 2020-08-26
 */
@Data
public class CustTicketVO implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "优惠券id")
    private Long ticketId;

    @ApiModelProperty(value = "用户优惠券id")
    private Long custTicketId;

    @ApiModelProperty(value = "客户id")
    private Long customerId;

    @ApiModelProperty(value = "支付金额")
    private BigDecimal paidAmount;

    @ApiModelProperty(value = "应收金额")
    private BigDecimal receivableAmount;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal discountAmount;

    @ApiModelProperty(value = "优惠券名称")
    private String ticketName;

    @ApiModelProperty(value = "使用界限金额")
    private BigDecimal useLimitMoney;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal preferentialMoney;

    @ApiModelProperty(value = "优惠类型，1.满减 2.折扣")
    private Integer preferentialType;

    @ApiModelProperty(value = "折率")
    private BigDecimal discountRate;

    @ApiModelProperty(value = "发放类型，1平台发放，2活动发放")
    private Integer grantType;

    @ApiModelProperty(value = "领取时间")
    private Date receiveTime;

    @ApiModelProperty(value = "优惠券使用开始时间")
    private Date useBeginTime;

    @ApiModelProperty(value = "优惠券使用截至时间")
    private Date useEndTime;

    @ApiModelProperty(value = "有效期天数")
    private Integer expiryDays;

    @ApiModelProperty(value = "使用类型，1.通用 2.时长 3.月租 4.充值")
    private Integer useType;

}
